{% extends "_layouts/index.html" -%}

{% block search -%}
{{ search::input(name="id", title="id", value=id)}}
{{ search::input(name="app_name", title="名称", value=app_name)}}
{{ search::input(name="app_id", title="app_id", value=app_id)}}
{{ search::input(name="customers_id", title="所属客户", value=customers_id)}}
{% endblock search -%}

{% block options -%}
{{option::delete_all()}} {{option::add(height=400)}}
{% endblock options -%}

{% block content -%}
<table class="layui-table layui-form">
<thead>
    <tr>
        <th style="width: 40px"> <input type="checkbox" name=""  lay-skin="primary"> </th>
        <th class="row-id">编号</th>
        <th>名称</th>
        <th>AppID</th>
        <th>图标</th>
        <th>主机</th>
        <th>所属客户</th>
        <th>操作</th>
    </tr>
    <tbody>
    {% for r in records -%}
    <tr>
        <td> <input type="checkbox" name=""  lay-skin="primary"> </td>
        <td>{{r.id}}</td>
        <td>{{r.app_name}}</td>
        <td>{{r.app_id}}</td>
        <td>{{r.app_icon}}</td>
        <td>{{r.app_host}}</td>
        <td>{{r.customers_id}}</td>
        <td class="td-manage"> {{option::update(id=r.id, height=300)}} | {{option::delete(id=r.id)}} </td>
    </tr>
    {% endfor -%}
    </tbody>
</thead>
</table>
{% endblock content -%}
